package com.glsc.ngateway.common.api.flowable.dto.demand.event;

public enum EventStatus {

    create("创建"),

    analysis("分析"),

    audit("待审核"),

    follow("跟踪"),

    close("完成");

    private String definekey;

    private EventStatus(String definekey) {
        this.definekey = definekey;
    }

    public String getDefinekey() {
        return definekey;
    }


    public static EventStatus getProcessNode(String definekey) {
        for (EventStatus processNode : EventStatus.values()) {
            if (processNode.getDefinekey().equalsIgnoreCase(definekey)) {
                return processNode;
            }
        }
        return null;
    }
}
